<template>
  <u-modal
    v-model="loginTipShow"
    :width="'650'"
    class="modal1"
    title="提示"
    content="未检测到登录信息，请重新登录"
    show-cancel-button
    @confirm="loginTipConfirm"
    @cancel="loginTipCancel"
    confirm-text="去登录">
  </u-modal>
</template>
<script>
export default {
  name: 'loadinginformationModal',
  props: {
    loginTipShow: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {}
  },
  methods: {
    loginTipConfirm() {
      this.$emit('confirm')
      uni.navigateTo({
        url: '/pages/login/login'
      })
    },
    loginTipCancel() {
      this.$emit('cancel', false)
    }
  }
}
</script>
<style lang="scss" scoped>
@import './modal.scss';
</style>
